<%--
  Created by IntelliJ IDEA.
  author: Jsonor
  date: 2018/4/19 15:33
  description: Description
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <script type="text/javascript">
    function ChangeCode(){
      var img = document.getElementById("validateimage");
      img.src = "${pageContext.request.contextPath}/getCode.do?a="+new Date().getTime();
    }
  </script>
</head>
<body>

  <div class="span12 last">
    <div class="wrap">
      <div class="main">
        <div>
          <img src="${pageContext.request.contextPath}/images/login.jpg"/>
        </div>
        <%--显示错误信息 --%>
        <font style="color:red;text-align:center;"><b>${msg}</b></font>
        <span style="color:red;font-weight:bold;text-align:center;">${login}</span></center>
        <form id="loginForm" action="${pageContext.request.contextPath}/login.do" onsubmit="return check();" method="post" novalidate="novalidate">
          <%--传用户的状态 ,通过ajax获取--%>
          <input type="hidden" name="state" id="state"/>
          <table>
            <tbody><tr>
              <th>
                账号:
              </th>
              <td>
                <input type="text" id="username" onblur="getState()"  name="username" class="text" maxlength="20"/>
                <span id="u" style="color:red;font-weight:bold;"></span>
              </td>
            </tr>
            <tr>
              <th>
                密&nbsp;&nbsp;码:
              </th>
              <td>
                <input type="password" id="password" name="password"  class="text" maxlength="20" autocomplete="off"/>
                <span id="p" style="color:red; font-weight:bold;"></span>
              </td>
            </tr>
            <tr>
              <th>
                验证码:
              </th>
              <td>
										<span class="fieldSet">
											<input type="text" id="validatecode" name="code" class="text captcha" maxlength="4" autocomplete="off"/>
											<img id="validateimage" class="captchaImage" src="${pageContext.request.contextPath}/getCode.do" onclick="ChangeCode()" title="点击更换验证码"/>
										</span>
                <span id="c" style="color:red;font-weight:bold;">${yzm}</span>
              </td>
            </tr>
            <tr>
              <th>&nbsp;

              </th>
            </tr>
            <tr>
              <th>&nbsp;

              </th>
              <td>
                <input type="submit" class="submit" value="登 录"/>
              </td>
            </tr>
            <tr class="register">
              <th>&nbsp;

              </th>
              <td>
                <dl>
                  <dd>
                    还没有注册账号？
                    <a href="${pageContext.request.contextPath}/user/regist.jsp">立即注册</a>
                  </dd>
                </dl>
              </td>
            </tr>
            </tbody></table>
        </form>
      </div>
    </div>
  </div>
</div>
</body>
</html>-->
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

  <title>登录</title>
  <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/login.css">
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/login.js"></script>
  <script type="text/javascript">
    function ChangeCode(){
      var img = document.getElementById("validateimage");
      img.src = "${pageContext.request.contextPath}/getCode.do?a="+new Date().getTime();
    }
  </script>

</head>
<body style="overflow:hidden">
<div class="pagewrap">
  <div class="main">
    <div class="header"></div>
    <div class="content">
      <div class="con_left"></div>
      <div class="con_right">
        <div class="con_r_top">
          <a href="javascript:;" class="right" style="color: rgb(51, 51, 51); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(46, 85, 142);">登录管理</a></div>
        <ul>
          <li class="con_r_left" style="display: none;">
            <div class="erweima">
              <div class="qrcode">
                <div id="output" style="width: 100%; position: relative">
                  <img src="${pageContext.request.contextPath}/images/2weima.jpg" style="width: 174px; height: 174px"></div>
              </div>
            </div>
          </li>


          <li class="con_r_right" style="display: block;">
            <form name="form1" method="post" action="${pageContext.request.contextPath}/login.do" autocomplete="off">
              <div class="user">
                <div><span class="user-icon"></span>
                  <input type="text" id="accountnumber" name="accountnumber" placeholder="　输入账号" value="">
                </div>

              <div><span class="mima-icon"></span>
                <input type="password" id="password" name="password" placeholder="　输入密码" value="">
              </div>

              <div><span class="yzmz-icon"></span>
                <input id="vdcode" type="text" name="code" placeholder="　验证码" value="" style=" width:150px;">　　

                <td>
										<span class="fieldSet">
											<img id="validateimage" class="captchaImage" src="${pageContext.request.contextPath}/getCode.do" onclick="ChangeCode()" title="点击更换验证码"/>
										</span>
                  <span id="c" style="color:red;font-weight:bold;">${yzm}</span>
                </td>



              </div>

      </div>
      <br>
      <button id="btn_Login" type="submit">登 录</button>
              <td>
                <dl>
                  <dd>
                    还没有注册账号？
                    <a href="${pageContext.request.contextPath}/user/regist.jsp">立即注册</a>
                  </dd>
                </dl>
              </td>
            </form>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>


</body>
</html>